/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.dao;

import java.util.List;
import thienphuc.patient.dto.NhomThuoc;


/**
 *
 * @author QuocDat
 */
public interface NhomThuocDAO extends Dao<NhomThuoc, Integer> {
    public final static String NHOM_THUOC_MA_NHOM = "maNhom";
    public final static String NHOM_THUOC_TEN_NHOM = "tenNhom";
    public final static String NHOM_THUOC_MO_TA = "moTa";
    public final static String NHOM_THUOC_TRANG_THAI = "trangThai";
    public final static String NHOM_THUOC_THUOCS = "thuocs";
    
    /**
     * Find NhomThuoc by TenNhom
     * @param tenNhom
     * @return
     * @throws Exception 
     */
    List<NhomThuoc> findByTenNhom(String tenNhom) throws Exception;
    
    /**
     * Find NhomThuoc by TrangThai
     * @param trangThai
     * @return
     * @throws Exception 
     */
    List<NhomThuoc> findByTrangThai(boolean trangThai) throws Exception;
    
}
